function drawHeroLife() {
	cxt.strokeStyle = '#ffffff';
	cxt.beginPath();
	cxt.lineWidth = 1;
	cxt.fillStyle = "#ffffff";
	cxt.moveTo(0, 501);
	cxt.lineTo(500, 501);
	cxt.closePath();
	cxt.stroke();

	cxt.font = "12px Arial";
	cxt.fillText("1P：", 10, 520);
	cxt.fillText("剩余敌机：" + (showEnemies.length + enemies.length), 10, 540);
	
	cxt.fillText("操作：W A S D 操作坦克移动", 250, 520);
	cxt.fillText("J 发射子弹 ", 285, 540);
	cxt.fillText("      ", 250, 560);
	
	cxt.fillStyle = "#ff0000";
	for (var i = 0 ;i < hero.life ; i++) {
		cxt.beginPath();
	    cxt.arc(40 + i*20,517,7,0,Math.PI*2,true);
	    cxt.closePath();
	    cxt.fill();
	}
}

function drawEnd(){
	cxt.clearRect( 0 , 0, 500, 600 );
	cxt.font = "25px Arial";
	cxt.fillText("消灭敌机" , 50 , 50 )
	var easyNum = 0;
	var nomalNum= 0;
	var hardNum = 0;
	var fastNum = 0;
	for( var i = 0 ; i < map[curMap].enemies.length;i++ ){
		item = map[curMap].enemies[i];
		if( item instanceof EasyEnemy  ) easyNum++;
		if( item instanceof NormalEnemy) nomalNum++;
		if( item instanceof HardEnemy  ) hardNum++;
		if( item instanceof FastEnemy  ) fastNum++;
	}
	drawTank( new EasyEnemy( 50 ,100 , 0 ) );
	cxt.fillText("×    "+ easyNum , 100 ,125 );
	
	drawTank( new NormalEnemy( 50 ,150 , 0 ) );
	cxt.fillText("×    "+ nomalNum , 100 ,175 );
	
	drawTank( new EasyEnemy( 50 ,200 , 0 ) );
	cxt.fillText("×    "+ hardNum , 100 ,225 );
	
	drawTank( new EasyEnemy( 50 ,250 , 0 ) );
	cxt.fillText("×    "+ fastNum , 100 ,275 );
	
	hero.x = 50 ;
	hero.y = 300 ;
	hero.direct = 0;
	drawTank( hero );
	cxt.fillStyle = "#ff0000";
	for (var i = 0 ;i < hero.life ; i++) {
		cxt.beginPath();
	    cxt.arc(100 + i*20,315,7,0,Math.PI*2,true);
	    cxt.closePath();
	    cxt.fill();
	}
}
